<template>
  <ul>
    <li v-for="(item, index) in res2" :key="index">
      <router-link :to="`detail?id=${item.id}&name=${item.name}`">
        <img :src="item.picUrl" alt="" />
        <p>{{ item.name }}</p>
      </router-link>
    </li>
  </ul>
  <!-- <audio :src=""></audio> -->
</template>

<script>
export default {
  props: {
    res2: {
      type: Array,
      required: true,
    },
  },
};
</script>

<style lang="less" scoped>
ul{
    width: 729px;
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
}
li >a > img {
  width: 140px;
}
li {
  width: 140px;
  height: 204px;
  margin-left: 42px;
  margin-bottom: 30px;
  a{
      font-size: 14px;
      color: #000;
  }
}
p:hover{
    text-decoration: underline;
}
</style>